#! groovy
import hudson.EnvVars
import hudson.model.*

node{
    def SERVER_IP="10.26.196.15"
    def SERVER_USR="tpbbops"
    def DEPLOY_DIR="/data/playbook/e-manager-service"

    stage('\u27BD Deploy to SERVER'){
        sh "ssh $SERVER_USR@$SERVER_IP 'cd $DEPLOY_DIR&&ansible-playbook deploy.yml -e \'server=${SERVER}\''"
    }
}

